<?php

require_once("data/dao/BaseDAO.php");
require("conf.php");

class SynchronizeLogDAO extends BaseDAO{
	
	public function logSynchronization($startTime, $endTime, $previousGamesTotal, $newGamesTotal, $newGames){
		
		$newRecords = $newGamesTotal - $previousGamesTotal;
		
		$newGames = implode(",", $newGames);
		
		self::connect();
		mysql_query("INSERT INTO " . SYNC_TABLE . " VALUES('$starTime', '$endTime', " .
				"'$previousGamesTotal', '$newGamesTotal', '$newRecords', '$newGames')");
	}
}
?>
